//! Header for the FilledRectangle-class
/*!
	\file FilledRectangle.h
	\author Andreas Lehner
	\date 13.11.2012

*/
#ifndef FILLEDRECTANGLE_H
#define FILLEDRECTANGLE_H

#include "Rectangle.h"

//! Describes a filled rectangle
/*!
\class FilledRectangle
The class FilledRectangle implements the DoWrite function for a filled rectangle.
It provides the tag for filling the rectangle with the color given. In the specification
it was an ambiguous statement (leaving out the fill tag means filling it out with black).
Assumption: it should be filled out with the color given.
*/
class FilledRectangle : public Rectangle {
public:
	//! CTor of FilledRectangle
	/*!
	This constructor is needed by the ShapeFactory that it is able to create an object of this class.
	All three parameters are set in the class Rectangle (Rectangle constructor is called).
	\param pos The position of the rectangle on a picture.
	\param size The dimensions of a rectangle.
	\param color The color a rectangle has.
	*/
	FilledRectangle(TPosition const& pos, TSize const& size, std::string const& color) : Rectangle(pos, size, color){};
protected:
	void DoWrite(std::ostream & stream);
};

#endif